#ifndef model_h
#define model_h
#include <lwan/lwan.h>
#include <lwan/lwan-mod-serve-files.h>
void model_init();
void model_close();
int  model_chibi_add(unsigned int qino,unsigned int weij,unsigned long long int weiy,unsigned int shuj,unsigned long long int shuy,unsigned int wuj,unsigned long long int wuy);
int model_chibi_update_victory(unsigned int qino,unsigned int victory);
int model_role_select_one_by_kv(char *key, void *val, int val_type, char *bufstr);
int model_role_write_one_gameid_name(int gameid, char *name);
int model_role_update_kv_by_gameid(char *key, void *val, int val_type, int game_id);

int model_account_select_one_by_kv(char *key, void *val, int val_type, char *bufstr);
int model_account_write_one_account_pwd(char *account, char *pwd);
int model_account_update_kv_by_account(char *key, void *val, int val_type, char *account);

int model_role_select_cols_offset(char *cols, int offset, char *bufstr);
#endif
